package top.mable.payment.api;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import top.mable.common.vo.GpTradeInfoDTO;
import top.mable.common.vo.Result;
/**
 *  @FeignClient("adjust")
 *  两个AdjustApi都是同一个微服务 adjust
 *  就出现以下问题：
 *
 The bean 'adjust.FeignClientSpecification' could not be registered. A bean with that name has already been defined and overriding is disabled.
 Action:
 Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
 需要设置 ： contextId = "AdjustApi2"
 *
 *
 */

@FeignClient(name = "adjust" ,contextId = "AdjustApi2")
public interface AdjustApi2 {

    @RequestMapping("/updateTradeInfo")
    Result updateTradeInfo(@RequestBody GpTradeInfoDTO gpTradeInfoDTO);

}
